﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Furion.CMS.Core.Permission
{
    /// <summary>
    /// 权限定义管理
    /// </summary>
    public interface IPermissionDefinitionManager
    {
        /// <summary>
        /// 获取指定的权限
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        PermissionDefinition Get(string name);
        /// <summary>
        /// 获取全部权限
        /// </summary>
        /// <returns></returns>
        IReadOnlyList<PermissionDefinition> GetPermissions();
        /// <summary>
        /// 获取权限组
        /// </summary>
        /// <returns></returns>
        IReadOnlyList<PermissionGroupDefinition> GetGroups();
    }
}
